﻿#define _CRT_SECURE_NO_WARNINGS 1

#include"AVLTree.h"

int main()
{
	AVLTree<int, int> root;
	srand((unsigned int)time(nullptr));
	vector<pair<int, int>> a;
	for (int i = 0; i < 20; i++)
	{
		a.push_back({ rand() + i , rand() + i });
	}
	for (auto& i : a)
		root.Insert(i);

	root.Inprint();
	AVLTree<int, int> av = root;
	cout << root.IsBalanceTree() << endl;
	return 0;
}